package com.cn.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
//@Controller控制层组件
public class HelloController {
    @RequestMapping("/")
    /**
     * 返回视图名称
     */
    public String index(){
        return "index";
    }
}
